package app.dev.ems.data.model.impl;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import app.dev.ems.data.model.IUser;
import app.dev.ems.support.annotation.Model;

@Model
@Entity
@Table(name="USER")
public class User extends Base implements IUser {

	private static final long serialVersionUID = 344528694909088439L;
	
	private String username;
	private String password;
	private String name;	
	
	public User() {
		
	}
	
	@Column(name="USERNAME", nullable=false, updatable=false)
	public String getUsername() {
		return username;
	}
	
	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name="PASSWORD", nullable=false)
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name="NAME")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}	
}
